<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
<c:import url="header.jsp"></c:import>
</head>
<body>
<%
	request.setAttribute("name", "ddd");
	pageContext.setAttribute("ttt", 764);
	String strpp="<div style=\"color:yellow;\">dfdfd<div>";
	request.setAttribute("strpp", strpp);
%>
当前登录的用户信息：
${pageScope.ttt}
${requestScope.name}

${sessionScope.s_name}
${sessionScope.s_pass}

${applicationScope.a_name}

${param.age}

${param.age>10}
<table border="1" style="border: 1px solid red;">
<tr><td>用户名</td><td>密码</td></tr>
<c:forEach items="${sessionScope.list}" var="user" step="1" begin="3" end="6" varStatus="status">
	<c:if test="${status.index%2==0}">
		<tr style="background: red"><td>${status.count}</td><td>${user.username}</td><td>${user.userpass}</td></tr>
		
	</c:if>
	<c:if test="${status.index%2!=0}">
		<tr style="background: blue"><td>${status.count}</td><td>${user.username}</td><td>${user.userpass}</td></tr>
	</c:if>
</c:forEach>
</table>
<br/>
<br/>
<table border="1" style="border: 1px solid red;">
<tr><td>用户名</td><td>密码</td></tr>
<c:forEach items="${sessionScope.list}" var="user"  varStatus="status">
	<c:if test="${status.index%2==0}">
		<tr style="background: red"><td>${status.count}</td><td>${user.username}</td><td>${user.userpass}</td></tr>
		
	</c:if>
	<c:if test="${status.index%2!=0}">
		<tr style="background: blue"><td>${status.count}</td><td>${user.username}</td><td>${user.userpass}</td></tr>
	</c:if>
</c:forEach>
</table>


<table border="1" style="border: 1px solid red;">
<tr><td>用户名</td><td>密码</td></tr>
<c:forEach items="${sessionScope.listx}" var="user"  varStatus="status">
	<c:if test="${status.index%2==0}">
		<tr style="background: red"><td>${status.count}</td><td>${user.username}</td><td>${user.userpass}</td></tr>
		
	</c:if>
	<c:if test="${status.index%2!=0}">
		<tr style="background: blue"><td>${status.count}</td><td>${user.username}</td><td>${user.userpass}</td></tr>
	</c:if>
</c:forEach>
</table>

<c:out value="${strpp}" default="444" escapeXml="false"></c:out><!-- 用 于格式化输出-->
</body>
</html>